public class Text
{
    public static void main(String[] args)
    {
        Person[] person = {
                new Employee("周子尧", "20231464", "15000.0"),
                new Employee("小王", "0006", "2500.0"),
                new Employee("小夏", "0007", "2500.0"),
                new Manager("李四", "0002", "3500.0", "软件开发部"),
                new Manager("王五", "0003", "3500.0", "软件销售部"),
                new Director("小明","0004", "4500.0", "200.0")
        };
        for (int i = 0; i < 6; i++)
        {
            person[i].show();
        }
        /*for (Person p: person)
        {
            p.show();
        }*/
        System.out.println("====================================================================");
        Goods goods1 = new Goods("电脑",2.5, 5000, 3, "华为");
        Goods goods2 = new Goods("电脑",2.5, 5000, 3, "华为");
        Goods goods3 = new Goods("电脑",3.5, 8000, 6, "惠普");
        System.out.println(goods1.toString());
        System.out.println(goods2.toString());
        System.out.println(goods3.toString());
        System.out.println(goods1.equals(goods2));
        System.out.println(goods1.equals(goods3));
        System.out.println(goods1.equals(person[0]));
    }
}
